<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<div class="content-wrap">
        <div class="wrapper" style="bottom: 50px;">
            <ul class="nav nav-tabs">
                <li>
                    <a href="#"  onclick="loadDiv('mainCenterDiv','${ctx}/nurse/nurseTempItemDict/index')">护理项目字典列表</a>
                </li>
                <li class="active">
                    <a href="#" onclick="loadDiv('mainCenterDiv','${ctx}/nurse/nurseTempItemDict/form')">
                        <c:choose>
                            <c:when test="${nurseTempItemDict.id==''|| nurseTempItemDict.id==null}">
                                护理项目字典添加
                            </c:when>
                            <c:otherwise>护理项目字典修改</c:otherwise>
                        </c:choose>
                    </a>
                </li>
            </ul>
            <section class="panel panel-default">
                <div class="panel-body">
                    <div class="col-lg-12">
                        <form:form id="inputForm" data-parsley-validate="" modelAttribute="nurseTempItemDict" onsubmit="return formSaveLoad('mainCenterDiv','inputForm','${ctx}/nurse/nurseTempItemDict/save','${ctx}/nurse/nurseTempItemDict/index');" method="post" class="form-horizontal">
                            <form:hidden path="id"/>

                            <div class="form-group">
                                <label class="col-sm-2 control-label">护理类型：</label>
                                <div class="col-sm-4">
                                    <form:select path="classCode" id="classCode" class="form-control" data-parsley-required="true">
                                        <form:options items="${fns:getDictList('NURSE_CLASS_DICT')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
                                    </form:select>
                                </div>
                            </div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">项目代码：</label>
                                    <div class="col-sm-4">
                                        <form:input path="vitalCode" htmlEscape="false" class="form-control"  maxlength="10" data-parsley-required="true"/>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">项目名称：</label>
                                    <div class="col-sm-4">
                                        <form:input path="vitalSigns" htmlEscape="false" class="form-control"  maxlength="16" data-parsley-required="true"/>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">护理人群：</label>
                                    <div class="col-sm-4">
                                        <form:select path="nurseGroups" class="form-control" >
                                            <form:options items="${fns:getDictList('NURSE_GROUPS')}" htmlEscape="false" itemValue="value" itemLabel="label" />
                                        </form:select>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">单位：</label>
                                    <div class="col-sm-4">
                                        <form:select path="unit" class="form-control" >
                                            <form:option value="">&nbsp;</form:option>
                                            <form:options items="${fns:getDictList('NURSE_ITEM_UNIT_DICT')}" htmlEscape="false" itemValue="value" itemLabel="label" />
                                        </form:select>
                                    </div>
                                </div>
                                <%--<div class="form-group">--%>
                                    <%--<label class="col-sm-2 control-label">科室：</label>--%>
                                    <%--<div class="col-sm-4">--%>
                                        <%--<sys:treeselect selectedParent="true" id="deptId" name="deptId" value="${nurseTempItemDict.deptId}"  update="${not empty deptId}" labelName="${nurseTempItemDict.deptId}" labelValue="${fns:getDeptName(nurseTempItemDict.deptId, '')}"--%>
                                                        <%--title="科室" url="/sys/orgDept/treeData" extId="${deptId}" cssClass="form-control" isnull="true"/>--%>
                                    <%--</div>--%>
                                <%--</div>--%>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">病区：</label>
                                    <div class="col-sm-4">

                                        <sys:treeselect selectedParent="true" id="wardCode" name="wardCode" value="${nurseTempItemDict.wardCode}"  update="${not empty wardCode}" labelName="${nurseTempItemDict.wardCode}" labelValue="${fns:getDeptName(nurseTempItemDict.wardCode, '')}"
                                                        title="科室" url="/sys/orgDept/treeData" extId="${wardCode}" cssClass="form-control" isnull="true"/>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">排序：</label>
                                    <div class="col-sm-4">
                                        <form:input path="sortNo" htmlEscape="false" class="form-control"  data-parsley-required="true" data-parsley-type="number"/>
                                    </div>
                                </div>

                                <div class="form-group">
                                    <div class="col-sm-offset-2 col-sm-10">
                                        <input id="btnSubmit" class="btn btn-primary" type="submit" value="保 存">&nbsp;
                                        <input id="btnCancel" class="btn" type="button" value="返 回" onclick="loadDiv('mainCenterDiv','${ctx}/nurse/nurseTempItemDict/index')">
                                </div>
                            </div>
                        </form:form>
                    </div>

                </div>
            </section>
        </div>
    </div>